home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994 November: Tool Chest / Dev.CD Nov 94.toast / Sample Code / Snippets / Toolbox / GridWindowGrow / GrowToGrid • Read Me next >
Encoding:
Text File  |  1994-08-08  |  634 b   |  16 lines  |  [TEXT/MPS ]

  1. This snippet shows how to grow a window constrained to a grid (i.e.
  2. only allow a window to grow or shrink by 30 pixels, or whatever).
  3.  
  4. Now, you might think that using something like DragHook (see the Window 
  5. Manager documentation) would be the best way to approach this.  Well, I
  6. personally don't think so, and a lot of my pragmatic (i.e. those who
  7. like to ship products instead of talking about them) friends agree.  The
  8. easiest way to do this is just to write a small MyGrowWIndow function
  9. and use that. 
  10.  
  11. Or, even better, just grab this one demonstrated here, and you're even more
  12. pragmatic than I!
  13.  
  14. C.K. Haun <TR>
  15. Apple DTS
  16. Aug 94